package com.xyp.mesadmin.md.type.mapper;

import com.xyp.mesadmin.md.type.VO.MdItemTypeVO;
import com.xyp.mesadmin.md.type.VO.SelectTypeVO;
import com.xyp.mescommon.entity.md.MdItemType;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MdItemTypeMapper {
    //查询所有VO
    List<MdItemTypeVO> selectAllItemType();
    //查询所有类型VO
    List<SelectTypeVO> selectTypeVO();
    //根据父类id查询
    List<MdItemType> selectByParentTypeId (Integer id);
    //根据id查询
    MdItemType selectById (Integer id);
    //删除
    void deleteById (Integer id);
    //添加
    void insertItemType(MdItemType mdItemType);
    //更新
    void updateItemType(MdItemType mdItemType);
}
